Skip to content

Reactive2DList.SetItem(int, int, T) method

Defined in

Type: Reactive2DList Namespace: ReactiveList.Reactive.Collections Assembly: ReactiveList.Reactive.dll

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

public void SetItem(int outerIndex, int innerIndex, T value)

View source (opens in a new tab)

Summary: Sets the element at the specified inner index within the inner list at the given outer index.

Parameters

NameTypeDescription
outerIndexint (opens in a new tab)The zero-based index of the outer list that contains the inner list to modify. Must be greater than or equal to 0 and less than the total number of outer lists.
innerIndexint (opens in a new tab)The zero-based index of the element within the inner list to set. Must be greater than or equal to 0 and less than the number of elements in the specified inner list.
valueTThe new value to assign to the element at the specified inner index.

Exceptions

TypeCondition
System.ArgumentOutOfRangeException (opens in a new tab)Thrown if outerIndex is less than 0 or greater than or equal to the number of outer lists, or if innerIndex is less than 0 or greater than or equal to the number of elements in the specified inner list.